#include <stdio.h>
int BigLetter[27],SmallLetter[27],cnt;
int main(){
    char tmp[105];
    scanf("%s",tmp);
    while(tmp[cnt]!='\0'){
        if(tmp[cnt]<='Z'&&tmp[cnt]>='A'){
            BigLetter[tmp[cnt]-'A']++;
        }
        if(tmp[cnt]<='z'&&tmp[cnt]>='a'){
            SmallLetter[tmp[cnt]-'a']++;
        }
        cnt++;
    }
    for(int i=0;i<26;i++){
        if(BigLetter[i]){
            printf("The character %c has presented %d times.\n",'A'+i,BigLetter[i]);
        }
    }
    for(int i=0;i<26;i++){
        if(SmallLetter[i]){
            printf("The character %c has presented %d times.\n",'a'+i,SmallLetter[i]);
        }
    }
    return 0;
}